package com.itheima.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.model.domain.UserInfo;

/**
 * @Author Pan Rundong
 * @Date 2023-02-27 9:43
 * @Desc 黑名单表Api
 */
public interface BlackListApi {
    /**
     * 根据用户Id查询
     *
     * @param userId
     * @return com.baomidou.mybatisplus.extension.plugins.pagination.Page<com.tanhua.model.domain.BlackList>
     * @Author: Pan Rundong
     */
    Page<UserInfo> getById(Long userId, int page, int size);

    /**
     * 移除黑名单
     *
     * @param uid
     * @param userId
     * @return void
     * @Author Pan Rundong
     */
    void deleteBlackList(Long uid, Long userId);
}
